package com.heima.zuoye.day06.tumu1;

public class Demo1 {
    public static void main(String[] args) {
        Student s = new Student();
        try {
            s.setAge(20);
        } catch (Exception e) {
            System.out.println("年龄不合理");
        }
        System.out.println(s.getAge());
    }
}
